package com.hu.common.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页数据
 */
@ApiModel("分页参数对象")
@Data
public class QueryInfo<T> {

    @ApiModelProperty(value = "查询条件")
    private T queryObject;

    @ApiModelProperty("当前记录起始索引")
    private Integer pageNumber;

    @ApiModelProperty("每页显示记录数")
    private Integer pageSize;

    /**
     * code = 0 desc
     * code = 1 asc
     */
    @ApiModelProperty("排序状态")
    private Integer orderStatus;

    @ApiModelProperty("排序的列")
    private String columnName;

}

